package com.ssy.lingxi.platform.template.service.repository;
import com.ssy.lingxi.platform.template.service.entity.adorn.PageTemplateCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PageTemplateCategoryRepository extends JpaRepository<PageTemplateCategory, Long> {

    PageTemplateCategory findByTemplateIdAndCategoryId(Long templateId, Long categoryId);

    PageTemplateCategory findByTemplateIdAndCategoryIdAndMemberId(Long templateId, Long categoryId, Long memberId);

    PageTemplateCategory findByTemplateIdAndCategoryIdAndMemberIdAndRoleId(Long templateId, Long categoryId, Long memberId, Long roleId);
}
